<include file="Public/header" />

    <section class="search">
        <div class="container">

            <div class="header-content">
                <h1>用感恩和科技让世界更美好！</h1>
                <p>表扬好名声，改善差名声，人人参与共建诚信社会</p>
                <p>诚信 公正 负责 友善</p>
                <div class="search-form">
                     <form id="searchform" action="{:U('Search/index')}"  method="get">
                          <div class=" btn-group" id="g-input">
                                <input type="text" class="btn-group" name='keyword' placeholder="请输入人名、企业" id="g-text"/>
                                <input type="submit" class="btn-group" value="开始搜索" id="g-btn"/>
                        </div>
                    </form>
                    <div class="header-bm hidden-xs">
                        <div class="header-span">
                            <span></span>
                            <span>热搜词：</span>
                        </div>
                        <p class="header-a">
                        	<foreach name="keyword" item="vo">
                            <a href="{:U('Search/index',array('keyword'=>$vo))}">{$vo}</a>
                        </foreach>
                            
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </section>



    <section class="ix-sec1">
        <div class="container">
            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 ix-box1">
                <div class="ix-titel clear">
                    <i class="tl-i1"></i>
                    <span>好名声榜</span>
                    <div class="arrow">
                        <a href="{:U('Praise/index')}">更多&nbsp;&nbsp;</a>
                    </div>
                </div>
                <div class="ix-ul">
                    <ul>
                    	<foreach name="praise" item="vo">
                        <li>
                            <i></i>
                            <a href="{:U('Praise/details',array('id'=>$vo['id']))}">{$vo.title|mb_substr=###,0,12,'utf-8'}
                                <span class="li-l">{$vo.bereport}</span>
                            
                            </a>
                        </li>
                    </foreach>

                    </ul>
                </div>
                <div class="ix-btn">
                    <a href="{:U('Praise/Release')}">发布好名声</a>
                </div>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 ix-box2">
                <div class="ix-titel clear">
                    <i class="tl-i1"></i>
                    <span>实名举报</span>
                    <div class="arrow">
                        <a href="{:U('Report/index')}">更多&nbsp;&nbsp;</a>
                    </div>
                </div>
                <div class="ix-ul">
                    <ul>
                       <foreach name="report" item="vo">
                        <li>
                            <i></i>
                            <a href="{:U('Report/details',array('id'=>$vo['id']))}">{$vo.title|mb_substr=###,0,12,'utf-8'}
                                <span class="li-l">{$vo.bereport}</span>
                            
                            </a>
                        </li>
                    </foreach>
                       
                    </ul>
                </div>
                <div class="ix-btn">
                    <a href="{:U('Report/Release')}">发布举报</a>
                </div>
            </div>

        </div>
    </section>


    <section class="ix-sec2">
        <div class="container">
            <div class="ix-titel clear">
                <i class="tl-i2"></i>
                <span>案例</span>
                <div class="arrow">
                    <a href="{:U('Case/index')}">查看更多&nbsp;&nbsp;</a>
                </div>
            </div>
            <div class="clear">
            	<foreach name="case" item="vo" key="k">
                <div class="ix2-box <if condition='($k+1) %3 eq 0 '>mr0</if>">
                    <a href="{:U('Case/details',array('id'=>$vo['id']))}">
                        <img class="img-responsive" src="__ROOT__/{$vo.image}" alt="">
                        <div class="ix2-cont">
                            <span>{$vo.title|mb_substr=0,8,'utf-8'}...</span>
                            <span>{$vo.addtime|date='Y-m-d',###}</span>
                        </div>
                    </a>
                </div>
            </foreach>
      
            </div>
        </div>
    </section>


    <section class="ix-sec3">
        <div class="container">
            <div class="ix-titel clear">
                <i class="tl-i3"></i>
                <span>资讯</span>
                <div class="arrow">
                    <a href="{:U('News/index')}">查看更多&nbsp;&nbsp;</a>
                </div>
            </div>
            <foreach name="news" item="vo">
            <div class="ix3-box">
                <a href="{:U('News/details',array('id'=>$vo['id']))}">
                    <div class="media">
                        <div class="media-left">
                            <img class="media-object" src="__ROOT__/{$vo.image}" alt="">
                        </div>
                        <div class="media-body">
                            <div>
                                <span> {$vo.title}</span>
                                <span class="ix3-time">{$vo.addtime|date='Y-m-d'}</span>
                            </div>
                            <p>{$vo.abstract}
                            </p>
                        </div>
                    </div>
                </a>
            </div>
        </foreach>
            
        </div>
    </section>
 
    <!-- moblie -->
    <section class="banner visible-xs-block">
        <div class="container">
            <div class="carousel slide" data-ride="carousel" id="co-h" data-interval="3000">
                <div class="carousel-inner ">
                    <foreach name="image" item="vo" key="k">
                    <div class="item <?php if($k==0){ echo 'active'; }?>">
                        <img class="img-responsive" src="./{$vo.image}" alt="">
                    </div>
                </foreach>
             
                </div>
                <ul class="carousel-indicators ">
                    <foreach name="image" item="vo" key="k">

                        <li data-target="#co-h" data-slide-to="{$k}"  <?php if($k==0){ echo "class='active'"; }?> ></li>

                  
                </foreach>
              
                </ul>
            </div>
        </div>
    </section>

<include file="Public/footer" />
    <script type="text/javascript">
    	$(function(){
    		$("#searchform").submit(function(){

    			var keyword=$("input[name='keyword']").val();
    			if(keyword==''){
    				alert('请输入内容！');
    				return false;
    			}
    			
    		})


    	})

   var arr = [".ix-ul",".ix2-box",".ix3-box"];


    for(var i = 0;i<arr.length;i++){
        hoverShadow(arr[i]);
    }



    function hoverShadow(dom) {

        $(dom).hover(function(){
            $(this).addClass("h-shaw");
        },function(){
            $(this).removeClass("h-shaw");
        })

    }

    </script>
<!--     <script src="__ROOT__/public/home/js/index.js"> -->


  






  